var tabs = document.getElementById("tabs").getElementsByTagName("li");
console.log(tabs);
var lists = document.getElementById("lists").getElementsByTagName("ul");
console.log(lists);
for(var i=0; i<tabs.length; i++)
{
	tabs[i].onclick = showlist;
}
function showlist() {
	for(var i=0; i<tabs.length;i++)
	if(tabs[i]===this){
		lists[i].className = "clearfix active1";
		tabs[i].className = "active";
	}
	else {
		tabs[i].className = "";
		lists[i].className = "clearfix";
	}
}